package com.wanpinghui.wphlibrary.model.order.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.HashSet;

/**
 * 功能描述
 * author:caitiangui
 * time:2018/1/2
 */

public class OrderRemarkBean implements Parcelable {

  private  Long   created_at;   // (integer, optional): 创建时间 ,
   private int id; // (integer, optional): 主键 ,
   private int order_id; // (integer, optional),
   private String remark; // (string, optional): 备注 ,

    public OrderRemarkBean(int order_id, String remark) {
        this.order_id = order_id;
        this.remark = remark;
    }

    public String getRemark() {
        return remark;
    }

    public int getOrder_id() {
        return order_id;
    }

    public long getCreated_at() {
        return created_at;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.created_at);
        dest.writeInt(this.id);
        dest.writeInt(this.order_id);
        dest.writeString(this.remark);
    }

    protected OrderRemarkBean(Parcel in) {
        this.created_at = (Long) in.readValue(Long.class.getClassLoader());
        this.id = in.readInt();
        this.order_id = in.readInt();
        this.remark = in.readString();
    }

    public static final Creator<OrderRemarkBean> CREATOR = new Creator<OrderRemarkBean>() {
        @Override
        public OrderRemarkBean createFromParcel(Parcel source) {
            return new OrderRemarkBean(source);
        }

        @Override
        public OrderRemarkBean[] newArray(int size) {
            return new OrderRemarkBean[size];
        }
    };
}
